package com.example.seata.account.controller;


import com.example.seata.account.entity.AccountTbl;
import com.example.seata.account.service.IAccountTblService;
import com.example.seata.account.service.impl.AccountTblServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author tianshuo
 * @since 2021-05-15
 */
@RestController
@RequestMapping("/account")
public class AccountTblController {
    @Autowired
    private IAccountTblService accountTblService;

    @PostMapping("/dedit")
    public String debit(@RequestBody AccountTbl accountTbl) {
         accountTblService.debit(accountTbl);
        return "ok";
    }

}

